﻿<Window x:Class="StockAnalyst2.Chart.OptionsDialog"
		x:ClassModifier="internal"
		
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
		xmlns:Utils="clr-namespace:Utils.Wpf;assembly=Utils"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
		xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:Chart="clr-namespace:StockAnalyst2.Chart"
        xmlns:Converters="clr-namespace:Utils.Wpf.Converters;assembly=Utils"
        xmlns:System="clr-namespace:System;assembly=mscorlib" mc:Ignorable="d"
		
		Title="Chart Settings"
		ResizeMode="NoResize" 
        SizeToContent="WidthAndHeight" 
		ShowInTaskbar="False" 
        WindowStartupLocation="CenterOwner" 
		Icon="/StockAnalyst2;component/Resources/Main.ico"
		
		Utils:WindowBehavior.HideCloseButton="True"
		
        d:DataContext="{d:DesignInstance Type=Chart:OptionsVM}" >

	<Window.Resources>
		<ResourceDictionary>
			<ResourceDictionary.MergedDictionaries>
				<ResourceDictionary Source="../StockAnalystTheme.xaml" />
			</ResourceDictionary.MergedDictionaries>
			<Converters:MultiplierConverter x:Key="MultiplierConverter" />
			<ObjectDataProvider MethodName="GetValues" ObjectType="{x:Type System:Enum}" x:Key="GeneratorSource">
				<ObjectDataProvider.MethodParameters>
					<x:Type TypeName="Chart:ChartSource" />
				</ObjectDataProvider.MethodParameters>
			</ObjectDataProvider>
		</ResourceDictionary>
	</Window.Resources>

	<Window.Background>
		<StaticResource ResourceKey="WindowBackground" />
	</Window.Background>

	<StackPanel>
		<Border BorderBrush="White" BorderThickness="1" CornerRadius="5" Margin="3" >
			<Grid Margin="10" >
				<Grid.ColumnDefinitions>
					<ColumnDefinition Width="Auto" />
					<ColumnDefinition Width="Auto" />
					<ColumnDefinition Width="Auto" />
					<ColumnDefinition Width="Auto" />
					<ColumnDefinition Width="Auto" />
					<ColumnDefinition Width="Auto" />
					<ColumnDefinition Width="Auto" />
					<ColumnDefinition Width="Auto" />
				</Grid.ColumnDefinitions>
				<Grid.RowDefinitions>
					<RowDefinition Height="Auto" />
					<RowDefinition Height="Auto" />
					<RowDefinition Height="Auto" />
					<RowDefinition Height="Auto" />
					<RowDefinition Height="Auto" />
					<RowDefinition Height="Auto" />
					<RowDefinition Height="Auto" />
					<RowDefinition Height="Auto" />
					<RowDefinition Height="Auto" />
					<RowDefinition Height="Auto" />
					<RowDefinition Height="Auto" />
					<RowDefinition Height="Auto" />
					<RowDefinition Height="Auto" />
					<RowDefinition Height="Auto" />
				</Grid.RowDefinitions>

				<TextBlock Grid.Row="0" Margin="5" VerticalAlignment="Center" Text="Indicator's Source:" />
				
				<Separator Grid.Row="1" Grid.ColumnSpan="8" Margin="0,5,0,5" />
				
				<!-- Serie Name -->
				<TextBlock Grid.Row="2" Margin="5" VerticalAlignment="Center" Text="Last Value:" x:Name="ReferenceItem" />
				<TextBlock Grid.Row="3" Margin="5" VerticalAlignment="Center" Text="Bid-Ask Average:" />
				<TextBlock Grid.Row="4" Margin="5" VerticalAlignment="Center" Text="Bid:" />
				<TextBlock Grid.Row="5" Margin="5" VerticalAlignment="Center" Text="Ask:" />
				<TextBlock Grid.Row="6" Margin="5" VerticalAlignment="Center" Text="SMA1:" />
				<TextBlock Grid.Row="7" Margin="5" VerticalAlignment="Center" Text="SMA2:" />
				<TextBlock Grid.Row="8" Margin="5" VerticalAlignment="Center" Text="SMA3:" />
				<TextBlock Grid.Row="9" Margin="5" VerticalAlignment="Center" Text="Stochastic" />
				<TextBlock Grid.Row="10" Margin="5" VerticalAlignment="Center" Text="Gap %" />
				<TextBlock Grid.Row="11" Margin="5" VerticalAlignment="Center" Text="Volume" />
				<TextBlock Grid.Row="12" Margin="5" VerticalAlignment="Center" Text="Total Volume" />
				<TextBlock Grid.Row="13" Margin="5" VerticalAlignment="Center" Text="Average Volume" />
				
				<ComboBox Grid.Row="0" Grid.Column="2" ItemsSource="{Binding Source={StaticResource GeneratorSource}}" Foreground="Black" SelectedItem="{Binding Options.ChartSource}" Margin="5,0,5,0" >
					<ComboBox.Resources>
						<Style TargetType="TextBlock">
							<Style.Triggers>
								<Trigger Property="IsEnabled" Value="True">
									<Setter Property="Foreground" Value="Black" />
								</Trigger>
							</Style.Triggers>
						</Style>
					</ComboBox.Resources>
				</ComboBox>

				<!-- Enabled -->
				<CheckBox Grid.Row="2" Grid.Column="1" VerticalAlignment="Center" Margin="5,0,5,0" IsChecked="{Binding Options.LastValueVM.IsEnabled}" />
				<CheckBox Grid.Row="3" Grid.Column="1" VerticalAlignment="Center" Margin="5,0,5,0" IsChecked="{Binding Options.BidAskAverageVM.IsEnabled}" />
				<CheckBox Grid.Row="4" Grid.Column="1" VerticalAlignment="Center" Margin="5,0,5,0" IsChecked="{Binding Options.BidVM.IsEnabled}" />
				<CheckBox Grid.Row="5" Grid.Column="1" VerticalAlignment="Center" Margin="5,0,5,0" IsChecked="{Binding Options.AskVM.IsEnabled}" />
				<CheckBox Grid.Row="6" Grid.Column="1" VerticalAlignment="Center" Margin="5,0,5,0" IsChecked="{Binding Options.SMA1VM.IsEnabled}" />
				<CheckBox Grid.Row="7" Grid.Column="1" VerticalAlignment="Center" Margin="5,0,5,0" IsChecked="{Binding Options.SMA2VM.IsEnabled}" />
				<CheckBox Grid.Row="8" Grid.Column="1" VerticalAlignment="Center" Margin="5,0,5,0" IsChecked="{Binding Options.SMA3VM.IsEnabled}" />
				<CheckBox Grid.Row="9" Grid.Column="1" VerticalAlignment="Center" Margin="5,0,5,0" IsChecked="{Binding Options.StochasticVM.IsEnabled}" />
				<CheckBox Grid.Row="10" Grid.Column="1" VerticalAlignment="Center" Margin="5,0,5,0" IsChecked="{Binding Options.GapVM.IsEnabled}" />
				<CheckBox Grid.Row="11" Grid.Column="1" VerticalAlignment="Center" Margin="5,0,5,0" IsChecked="{Binding Options.VolumeVM.IsEnabled}" />
				<CheckBox Grid.Row="12" Grid.Column="1" VerticalAlignment="Center" Margin="5,0,5,0" IsChecked="{Binding Options.TotalVolumeVM.IsEnabled}" />
				<CheckBox Grid.Row="13" Grid.Column="1" VerticalAlignment="Center" Margin="5,0,5,0" IsChecked="{Binding Options.AverageVolumeVM.IsEnabled}" />
				
				<!-- Parameter Value -->
				<StackPanel Grid.Row="6" Grid.Column="2" Orientation="Horizontal" >
					<TextBlock Text="Period:" VerticalAlignment="Center" Margin="3,0,3,0" />
					<TextBox Text="{Binding Options.SMA1VM.Parameter1Value, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True, ValidatesOnDataErrors=True}" Margin="3,0,3,0" Width="{Binding ActualWidth, ElementName=ReferenceItem, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.6}" TextAlignment="Right" />
					<TextBlock Text="segs" VerticalAlignment="Center" Margin="3,0,3,0" />
				</StackPanel>

				<StackPanel Grid.Row="7" Grid.Column="2" Orientation="Horizontal" >
					<TextBlock Text="Period:" VerticalAlignment="Center" Margin="3,0,3,0" />
					<TextBox Text="{Binding Options.SMA2VM.Parameter1Value, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True, ValidatesOnDataErrors=True}" Margin="3,0,3,0" Width="{Binding ActualWidth, ElementName=ReferenceItem, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.6}" TextAlignment="Right" />
					<TextBlock Text="segs" VerticalAlignment="Center" Margin="3,0,3,0" />
				</StackPanel>

				<StackPanel Grid.Row="8" Grid.Column="2" Orientation="Horizontal" >
					<TextBlock Text="Period:" VerticalAlignment="Center" Margin="3,0,3,0" />
					<TextBox Text="{Binding Options.SMA3VM.Parameter1Value, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True, ValidatesOnDataErrors=True}" Margin="3,0,3,0" Width="{Binding ActualWidth, ElementName=ReferenceItem, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.6}" TextAlignment="Right" />
					<TextBlock Text="segs" VerticalAlignment="Center" Margin="3,0,3,0" />
				</StackPanel>

				<StackPanel Grid.Row="9" Grid.Column="2" Orientation="Horizontal" >
					<TextBlock Text="Period:" VerticalAlignment="Center" Margin="3,0,3,0" />
					<TextBox Text="{Binding Options.StochasticVM.Parameter1Value, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True, ValidatesOnDataErrors=True}" Margin="3,0,3,0" Width="{Binding ActualWidth, ElementName=ReferenceItem, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.6}" TextAlignment="Right" />
					<TextBlock Text="segs" VerticalAlignment="Center" Margin="3,0,3,0" />
				</StackPanel>

				<StackPanel Grid.Row="11" Grid.Column="2" Orientation="Horizontal" >
					<TextBlock Text="Period:" VerticalAlignment="Center" Margin="3,0,3,0" />
					<TextBox Text="{Binding Options.VolumeVM.Parameter1Value, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True, ValidatesOnDataErrors=True}" Margin="3,0,3,0" Width="{Binding ActualWidth, ElementName=ReferenceItem, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.6}" TextAlignment="Right" />
					<TextBlock Text="segs" VerticalAlignment="Center" Margin="3,0,3,0" />
				</StackPanel>
				
				<StackPanel Grid.Row="13" Grid.Column="2" Orientation="Horizontal" >
					<TextBlock Text="Period:" VerticalAlignment="Center" Margin="3,0,3,0" />
					<TextBox Text="{Binding Options.AverageVolumeVM.Parameter1Value, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True, ValidatesOnDataErrors=True}" Margin="3,0,3,0" Width="{Binding ActualWidth, ElementName=ReferenceItem, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.6}" TextAlignment="Right" />
					<TextBlock Text="segs" VerticalAlignment="Center" Margin="3,0,3,0" />
				</StackPanel>
				
				<!-- Color -->
				<Border Grid.Row="2" Grid.Column="3" BorderThickness="1" BorderBrush="White"  Margin="5,1,5,1" Background="{Binding Options.LastValueVM.Color}" Width="{Binding ActualWidth, ElementName=ReferenceItem, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.35}" />
				<Border Grid.Row="3" Grid.Column="3" BorderThickness="1" BorderBrush="White"  Margin="5,1,5,1" Background="{Binding Options.BidAskAverageVM.Color}" Width="{Binding ActualWidth, ElementName=ReferenceItem, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.35}" />
				<Border Grid.Row="4" Grid.Column="3" BorderThickness="1" BorderBrush="White"  Margin="5,1,5,1" Background="{Binding Options.BidVM.Color}" Width="{Binding ActualWidth, ElementName=ReferenceItem, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.35}" />
				<Border Grid.Row="5" Grid.Column="3" BorderThickness="1" BorderBrush="White"  Margin="5,1,5,1" Background="{Binding Options.AskVM.Color}" Width="{Binding ActualWidth, ElementName=ReferenceItem, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.35}" />
				<Border Grid.Row="6" Grid.Column="3" BorderThickness="1" BorderBrush="White"  Margin="5,1,5,1" Background="{Binding Options.SMA1VM.Color}" Width="{Binding ActualWidth, ElementName=ReferenceItem, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.35}" />
				<Border Grid.Row="7" Grid.Column="3" BorderThickness="1" BorderBrush="White"  Margin="5,1,5,1" Background="{Binding Options.SMA2VM.Color}" Width="{Binding ActualWidth, ElementName=ReferenceItem, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.35}" />
				<Border Grid.Row="8" Grid.Column="3" BorderThickness="1" BorderBrush="White"  Margin="5,1,5,1" Background="{Binding Options.SMA3VM.Color}" Width="{Binding ActualWidth, ElementName=ReferenceItem, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.35}" />
				<Border Grid.Row="9" Grid.Column="3" BorderThickness="1" BorderBrush="White"  Margin="5,1,5,1" Background="{Binding Options.StochasticVM.Color}" Width="{Binding ActualWidth, ElementName=ReferenceItem, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.35}" />
				<Border Grid.Row="10" Grid.Column="3" BorderThickness="1" BorderBrush="White"  Margin="5,1,5,1" Background="{Binding Options.GapVM.Color}" Width="{Binding ActualWidth, ElementName=ReferenceItem, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.35}" />
				<Border Grid.Row="11" Grid.Column="3" BorderThickness="1" BorderBrush="White"  Margin="5,1,5,1" Background="{Binding Options.VolumeVM.Color}" Width="{Binding ActualWidth, ElementName=ReferenceItem, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.35}" />
				<Border Grid.Row="12" Grid.Column="3" BorderThickness="1" BorderBrush="White"  Margin="5,1,5,1" Background="{Binding Options.TotalVolumeVM.Color}" Width="{Binding ActualWidth, ElementName=ReferenceItem, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.35}" />
				<Border Grid.Row="13" Grid.Column="3" BorderThickness="1" BorderBrush="White"  Margin="5,1,5,1" Background="{Binding Options.AverageVolumeVM.Color}" Width="{Binding ActualWidth, ElementName=ReferenceItem, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.35}" />
				
				<!-- Line Thickness -->
				<StackPanel Grid.Row="2" Grid.Column="5" Orientation="Horizontal" >
					<TextBlock Text="Line:" VerticalAlignment="Center" Margin="3,0,3,0" />
					<TextBox Text="{Binding Options.LastValueVM.Thickness}" Margin="3,0,3,0" Width="{Binding ActualWidth, ElementName=ReferenceItem, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.25}" />
				</StackPanel>

				<StackPanel Grid.Row="3" Grid.Column="5" Orientation="Horizontal" >
					<TextBlock Text="Line:" VerticalAlignment="Center" Margin="3,0,3,0" />
					<TextBox Text="{Binding Options.BidAskAverageVM.Thickness}" Margin="3,0,3,0" Width="{Binding ActualWidth, ElementName=ReferenceItem, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.25}" />
				</StackPanel>

				<StackPanel Grid.Row="4" Grid.Column="5" Orientation="Horizontal" >
					<TextBlock Text="Line:" VerticalAlignment="Center" Margin="3,0,3,0" />
					<TextBox Text="{Binding Options.BidVM.Thickness}" Margin="3,0,3,0" Width="{Binding ActualWidth, ElementName=ReferenceItem, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.25}" />
				</StackPanel>
				
				<StackPanel Grid.Row="5" Grid.Column="5" Orientation="Horizontal" >
					<TextBlock Text="Line:" VerticalAlignment="Center" Margin="3,0,3,0" />
					<TextBox Text="{Binding Options.AskVM.Thickness}" Margin="3,0,3,0" Width="{Binding ActualWidth, ElementName=ReferenceItem, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.25}" />
				</StackPanel>
				
				<StackPanel Grid.Row="6" Grid.Column="5" Orientation="Horizontal" >
					<TextBlock Text="Line:" VerticalAlignment="Center" Margin="3,0,3,0" />
					<TextBox Text="{Binding Options.SMA1VM.Thickness}" Margin="3,0,3,0" Width="{Binding ActualWidth, ElementName=ReferenceItem, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.25}" />
				</StackPanel>

				<StackPanel Grid.Row="7" Grid.Column="5" Orientation="Horizontal" >
					<TextBlock Text="Line:" VerticalAlignment="Center" Margin="3,0,3,0" />
					<TextBox Text="{Binding Options.SMA2VM.Thickness}" Margin="3,0,3,0" Width="{Binding ActualWidth, ElementName=ReferenceItem, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.25}" />
				</StackPanel>

				<StackPanel Grid.Row="8" Grid.Column="5" Orientation="Horizontal" >
					<TextBlock Text="Line:" VerticalAlignment="Center" Margin="3,0,3,0" />
					<TextBox Text="{Binding Options.SMA3VM.Thickness}" Margin="3,0,3,0" Width="{Binding ActualWidth, ElementName=ReferenceItem, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.25}" />
				</StackPanel>

				<StackPanel Grid.Row="9" Grid.Column="5" Orientation="Horizontal" >
					<TextBlock Text="Line:" VerticalAlignment="Center" Margin="3,0,3,0" />
					<TextBox Text="{Binding Options.StochasticVM.Thickness}" Margin="3,0,3,0" Width="{Binding ActualWidth, ElementName=ReferenceItem, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.25}" />
				</StackPanel>

				<StackPanel Grid.Row="10" Grid.Column="5" Orientation="Horizontal" >
					<TextBlock Text="Line:" VerticalAlignment="Center" Margin="3,0,3,0" />
					<TextBox Text="{Binding Options.GapVM.Thickness}" Margin="3,0,3,0" Width="{Binding ActualWidth, ElementName=ReferenceItem, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.25}" />
				</StackPanel>

				<StackPanel Grid.Row="12" Grid.Column="5" Orientation="Horizontal" >
					<TextBlock Text="Line:" VerticalAlignment="Center" Margin="3,0,3,0" />
					<TextBox Text="{Binding Options.TotalVolumeVM.Thickness}" Margin="3,0,3,0" Width="{Binding ActualWidth, ElementName=ReferenceItem, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.25}" />
				</StackPanel>

				<StackPanel Grid.Row="13" Grid.Column="5" Orientation="Horizontal" >
					<TextBlock Text="Line:" VerticalAlignment="Center" Margin="3,0,3,0" />
					<TextBox Text="{Binding Options.AverageVolumeVM.Thickness}" Margin="3,0,3,0" Width="{Binding ActualWidth, ElementName=ReferenceItem, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.25}" />
				</StackPanel>
				
				<!-- Draw Area -->
				<CheckBox Grid.Row="2" Grid.Column="6" VerticalAlignment="Center" Margin="5,0,5,0" IsChecked="{Binding Options.LastValueVM.DrawArea}" />
				<CheckBox Grid.Row="3" Grid.Column="6" VerticalAlignment="Center" Margin="5,0,5,0" IsChecked="{Binding Options.BidAskAverageVM.DrawArea}" />
				<CheckBox Grid.Row="4" Grid.Column="6" VerticalAlignment="Center" Margin="5,0,5,0" IsChecked="{Binding Options.BidVM.DrawArea}" />
				<CheckBox Grid.Row="5" Grid.Column="6" VerticalAlignment="Center" Margin="5,0,5,0" IsChecked="{Binding Options.AskVM.DrawArea}" />
				<CheckBox Grid.Row="6" Grid.Column="6" VerticalAlignment="Center" Margin="5,0,5,0" IsChecked="{Binding Options.SMA1VM.DrawArea}" />
				<CheckBox Grid.Row="7" Grid.Column="6" VerticalAlignment="Center" Margin="5,0,5,0" IsChecked="{Binding Options.SMA2VM.DrawArea}" />
				<CheckBox Grid.Row="8" Grid.Column="6" VerticalAlignment="Center" Margin="5,0,5,0" IsChecked="{Binding Options.SMA3VM.DrawArea}" />
				<CheckBox Grid.Row="9" Grid.Column="6" VerticalAlignment="Center" Margin="5,0,5,0" IsChecked="{Binding Options.StochasticVM.DrawArea}" />
				<CheckBox Grid.Row="10" Grid.Column="6" VerticalAlignment="Center" Margin="5,0,5,0" IsChecked="{Binding Options.GapVM.DrawArea}" />
				<CheckBox Grid.Row="12" Grid.Column="6" VerticalAlignment="Center" Margin="5,0,5,0" IsChecked="{Binding Options.TotalVolumeVM.DrawArea}" />
				<CheckBox Grid.Row="13" Grid.Column="6" VerticalAlignment="Center" Margin="5,0,5,0" IsChecked="{Binding Options.AverageVolumeVM.DrawArea}" />

				<!-- Area Color -->
				<Border Grid.Row="2" Grid.Column="7" BorderThickness="1" BorderBrush="White"  Margin="5,1,5,1" Background="{Binding Options.LastValueVM.AreaColor}" Width="{Binding ActualWidth, ElementName=ReferenceItem, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.35}" />
				<Border Grid.Row="3" Grid.Column="7" BorderThickness="1" BorderBrush="White"  Margin="5,1,5,1" Background="{Binding Options.BidAskAverageVM.AreaColor}" Width="{Binding ActualWidth, ElementName=ReferenceItem, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.35}" />
				<Border Grid.Row="4" Grid.Column="7" BorderThickness="1" BorderBrush="White"  Margin="5,1,5,1" Background="{Binding Options.BidVM.AreaColor}" Width="{Binding ActualWidth, ElementName=ReferenceItem, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.35}" />
				<Border Grid.Row="5" Grid.Column="7" BorderThickness="1" BorderBrush="White"  Margin="5,1,5,1" Background="{Binding Options.AskVM.AreaColor}" Width="{Binding ActualWidth, ElementName=ReferenceItem, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.35}" />
				<Border Grid.Row="6" Grid.Column="7" BorderThickness="1" BorderBrush="White"  Margin="5,1,5,1" Background="{Binding Options.SMA1VM.AreaColor}" Width="{Binding ActualWidth, ElementName=ReferenceItem, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.35}" />
				<Border Grid.Row="7" Grid.Column="7" BorderThickness="1" BorderBrush="White"  Margin="5,1,5,1" Background="{Binding Options.SMA2VM.AreaColor}" Width="{Binding ActualWidth, ElementName=ReferenceItem, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.35}" />
				<Border Grid.Row="8" Grid.Column="7" BorderThickness="1" BorderBrush="White"  Margin="5,1,5,1" Background="{Binding Options.SMA3VM.AreaColor}" Width="{Binding ActualWidth, ElementName=ReferenceItem, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.35}" />
				<Border Grid.Row="9" Grid.Column="7" BorderThickness="1" BorderBrush="White"  Margin="5,1,5,1" Background="{Binding Options.StochasticVM.AreaColor}" Width="{Binding ActualWidth, ElementName=ReferenceItem, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.35}" />
				<Border Grid.Row="10" Grid.Column="7" BorderThickness="1" BorderBrush="White"  Margin="5,1,5,1" Background="{Binding Options.GapVM.AreaColor}" Width="{Binding ActualWidth, ElementName=ReferenceItem, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.35}" />
				<Border Grid.Row="12" Grid.Column="7" BorderThickness="1" BorderBrush="White"  Margin="5,1,5,1" Background="{Binding Options.TotalVolumeVM.AreaColor}" Width="{Binding ActualWidth, ElementName=ReferenceItem, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.35}" />
				<Border Grid.Row="13" Grid.Column="7" BorderThickness="1" BorderBrush="White"  Margin="5,1,5,1" Background="{Binding Options.AverageVolumeVM.AreaColor}" Width="{Binding ActualWidth, ElementName=ReferenceItem, Converter={StaticResource MultiplierConverter}, ConverterParameter=0.35}" />
			</Grid>
		</Border>

		<UniformGrid Columns="2" HorizontalAlignment="Right" Margin="3,0,6,0" >
			<Button Content="Accept" Margin="3" Padding="12,3,12,3" IsDefault="True" Command="{Binding AcceptCommand}" />
			<Button Content="Cancel" Margin="3" Padding="12,3,12,3" IsCancel="True" Command="{Binding CancelCommand}" />
		</UniformGrid>
	</StackPanel>
</Window>
